﻿<UserControl x:Class="Save_Editor.Controls.ctrlItemSaveData"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:m="clr-namespace:Save_Editor.Controls"
             mc:Ignorable="d" MinWidth="384" MinHeight="358" MaxWidth="384" MaxHeight="358" Height="358" Width="384">
    <UserControl.Resources>
        <m:NullIntToString x:Key="niTos" />
        <m:NullStringConv x:Key="nsc" />
    </UserControl.Resources>
    <Grid>
        <ComboBox Text="{Binding ItemClassName}" Height="28" Margin="6,6,6,0" Name="bmInvent" VerticalAlignment="Top" IsEditable="False" IsReadOnly="True" />
        <Label Content="Medicine Units" Height="28" HorizontalAlignment="Left" Margin="10,48,0,0" VerticalAlignment="Top" />
        <Label Content="Food Units" Height="28" HorizontalAlignment="Left" Margin="32,82,0,0" Name="label3" VerticalAlignment="Top" />
        <Label Content="Fuel Units" Height="28" HorizontalAlignment="Left" Margin="37,116,0,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Guid" Height="28" HorizontalAlignment="Left" Margin="64,150,0,0" Name="label5" VerticalAlignment="Top" />
        <Label Content="Rounds" Height="28" HorizontalAlignment="Left" Margin="49,184,0,0" Name="label6" VerticalAlignment="Top" />
        <Label Content="Ammo" Height="28" HorizontalAlignment="Left" Margin="54,218,0,0" Name="label7" VerticalAlignment="Top" />
        <TextBox Text="{Binding MedicineUnits, Converter={StaticResource appsTi}}" Height="28" Margin="105,48,6,0" VerticalAlignment="Top" />
        <TextBox Text="{Binding FoodUnits, Converter={StaticResource appsTi}}" Height="28" Margin="105,82,6,0" VerticalAlignment="Top" />
        <TextBox Text="{Binding FuelUnits, Converter={StaticResource appsTi}}" Height="28" Margin="105,116,6,0" VerticalAlignment="Top" />
        <TextBox Text="{Binding Guid}" Height="28" Margin="105,150,6,0" VerticalAlignment="Top" IsReadOnly="True" />
        <TextBox Text="{Binding NumRounds,Converter={StaticResource niTos}}" Height="28" Margin="105,184,6,0" VerticalAlignment="Top" />
        <ComboBox Text="{Binding LoadedAmmoClassName, Converter={StaticResource nsc}}" Height="28" Margin="105,218,6,0" VerticalAlignment="Top" IsEditable="True" Name="ammobox" />
        <Label Content="Location" Height="28" HorizontalAlignment="Left" Margin="49,252,0,0" Name="label1" VerticalAlignment="Top" />
        <m:ctrlLocationData Margin="105,252,0,0" HorizontalAlignment="Left" Width="120" Height="74" VerticalAlignment="Top" DataContext="{Binding Location}" />
    </Grid>
</UserControl>
